package com.aaa.sso.controller;

import com.aaa.common.util.BaseController;
import com.aaa.common.util.Result;
import com.aaa.sso.service.AuthService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ fileName:MemberCtronller
 * @ description: 移动端会员管理的登录接口
 * @ author:zhz
 * @ createTime:2023/6/16 11:29
 * @ version:1.0.0
 */
@RestController
@RequestMapping("member")
public class MemberController extends BaseController {

    @Resource(name = "mas")
    //@Autowired
    private AuthService authService;

    /**
     * 移动端会员登录
     * @param userName
     * @param password
     * @return
     */
    @GetMapping("login")
    public Result login(String userName, String password){
        //调用服务层，因为登录方法比较复杂，在服务层写代码

        return success(1);
    }


    /**
     * 验证token
     * @param token
     * @return
     */
    @GetMapping("checkToken")
    public boolean  checkToken(String token){
        //调用服务层验证
        return false;
    }
}
